package sh.wnxy.wn38.service;

import sh.wnxy.wn38.entity.Cart;
import com.baomidou.mybatisplus.extension.service.IService;
import sh.wnxy.wn38.entity.Ticket;
import sh.wnxy.wn38.mapper.CartMapper;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wn38
 * @since 2021-07-13
 */

public interface ICartService extends IService<Cart> {

    List<Cart> selectall(String id);

    Ticket selectTicekt(Integer id);

    String getSpotName(Integer ticketSpotId);

    String selectPath(Integer ticketSpotid);

    boolean updateNumber(Integer index, Integer number);

    Ticket changeTicket(Integer index, LocalDate date);
}
